<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
  <title>指导教师列表</title>
</head>
<body>
<h2>指导教师列表</h2>
<table >
  <tr>
    <th>姓名</th>
    <th>研究方向</th>
    <th>操作</th>
  </tr>
  <tr th:each="advisor : ${advisors}">
    <td th:text="${advisor.fullName}"></td>
    <td th:text="${advisor.researchField}"></td>
    <td>
      <a th:href="@{/assignMentees(advisorId=${advisor.id})}">分配学生</a>
    </td>
  </tr>
</table>
<br>
<a href="/advisor/create">新增教师</a> |
<a href="/mentee/create">新增学生</a>
</body>
</html>
